/*
 * @(#)UserRedisCache.java 2014-10-11 下午1:51:46
 * Copyright 2014 鲍建明, Inc. All rights reserved. 8637.com
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package cn.singno.bob.redis.service;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import cn.singno.bob.redis.base.RedisBase33;
import cn.singno.bob.redis.entity.UserRedis;


/**
 * <p>File：UserRedisCache.java</p>
 * <p>Title: </p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2014 2014-10-11 下午1:51:46</p>
 * <p>Company: 8637.com</p>
 * @author 鲍建明
 * @version 1.0
 */
@Component
public class UserRedisCache extends RedisBase33<String, UserRedis>
{

	@CachePut(value = "haha2", key="#s")
	public UserRedis add(String s){
		UserRedis userRedis = new UserRedis();
		userRedis.setId("123123");
		userRedis.setName("测试redis");
		return userRedis;
	}
	
	@Cacheable(value = "haha2", key="#s")
	public UserRedis getStr(String s){
		
		return null;
	}
	
}
